from fastapi import APIRouter
from .attribute_router import (
    create_attribute,
    list_attributes,
    update_attribute,
    delete_attribute
)

router = APIRouter()

# 通用CRUD接口：applicable_object\ knowledge_type\ applicable_area \element_classification
router.post("/attributes/create", tags=["Attributes"], summary="创建属性")(create_attribute)
router.post("/attributes/list", tags=["Attributes"], summary="查找属性")(list_attributes)
router.put("/attributes/update", tags=["Attributes"], summary="更新属性")(update_attribute)
router.delete("/attributes/delete", tags=["Attributes"], summary="删除属性")(delete_attribute)

